<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title></title>
	<script type="text/javascript" src='./Js/jquery-1.7.2.min.js'></script>
        <style>
            .a1{height: 200px;
                width: 200px;
                background-color: red;
              }
              .cc{height: 50px;
                  width: 50px;
                background-color: blue;  
              }
        </style>
        <script>
            $(function(){
            $(".cc").click(function(){
                alert($(this).test());
            $(this).parents(".a1").fadeOut("slow") ; 
            });    
    });
       </script> 
</head>
<body>
    <div class="a1">
        <div class="cc">1</div> 
    </div>
     <div class="a1">
        <div class="cc">2</div> 
    </div>
     <div class="a1">
        <div class="cc">3</div> 
    </div>
</body>
</html>